<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <form action="/upload/image" method="post" enctype="multipart/form-data">
        <input type="file" name="file">
        <input type="submit">
        <img width="100px" height="100px" th:src="${img}">
    </form>

</body>
</html>